<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" display="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" display="IE=edge,chrome=1">
    <meta name="viewport" display="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" display="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>账号管理</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-member" novalidate style="" enctype="multipart/form-data">
        <div class="row cl">
            <label class="form-label col-sm-2">*配置位置：</label>
            <div class="formControls col-sm-9">
                <span class="select-box size-M radius col-xs-8 w-280" style="background: #fff;">
                <select class="select" name="brandclass" size="1" id="shaixuan" name="title" style="width: 100%;" required onchange="asd(this.value)">
                    <option value="左上方">左上方</option>
                    <option value="上方">上方</option>
                    <option value="下方">下方</option>
                </select></span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2">*标题：</label>
            <div class="formControls col-sm-9">
                <input type="text" onkeyup="checkLength(this, 40);" class="input-text radius w-280" value="" placeholder="请输入标题" id="title" name="title" required>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2">*图片：</label>
            <div class="formControls col-sm-9">
                <img title="" src="../../../../static/h-ui.admin/images/20180302170728.png" class="mr-10" id="myImg" height="100px",width="100px">
                <input type="file" id="file" name="image"  onchange="changImg(event)" style="display: none">
                <button id="pic" style="line-height:40px;">点击上传</button>
                <span id="more" style="color: #f00 ; line-height:40px; padding-left:15px"></span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2">URL地址：</label>
            <div class="formControls col-sm-9">
                <input type="text" class="input-text radius w-280" value="" placeholder="默认请输入图片链接的URL地址" id="url" name="urlpath">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-sm-2">*时间设置：</label>
            <div class="formControls col-sm-9">
                <span class="wstxt"></span><input type="text" class="workinput wicon input-text radius w-135" id="logmin" readonly placeholder="请选择发放时间" required name="a">~</span><input type="text" class="workinput wicon input-text radius w-135" id="logmax" readonly placeholder="请选择发放时间" required name="b">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2" style="padding:0">*平台选择：</label>
            <div class="formControls col-sm-9">
                <span class="select-box size-M radius col-xs-8 w-280" style="background: #fff;">
                    <select class="select radius valid" name="brandclass" id="pingtai" onchange="categorysss()" >
                        <option value="20" selected>普通平台</option>
                        <option value="10">签约平台</option>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2" style="padding:0">*地域筛选：</label>
            <div class="formControls col-sm-9">
                <span class="select-box size-M radius col-xs-8 w-280" style="background: #fff;">
                    <select class="select" name="brandclass" id="diyu" onchange="categorysss()" >

                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2" style="padding:0">*品类：</label>
            <div class="formControls col-sm-9">
                <span class="select-box size-M radius col-xs-8 w-280" style="background: #fff;">
                    <select class="select" name="brandclass" id="pinlei" size="1">
                        <option value="" selected>无</option>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button class="btn btn-primary radius" type="submit">&nbsp;&nbsp;保存&nbsp;&nbsp;</button><button onclick="removeIframe();" class="btn radius ml-10" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../../../ht-js/operation-js/operation_resource/display-js/display_edit.js?rev=@@hash"></script>
<link type="text/css" rel="stylesheet" href="../../../../ht-js/operation-js/time-js/jedate.css">
<script type="text/javascript" src="../../../../ht-js/operation-js/time-js/jquery.jedate.js?rev=@@hash"></script>
<!--仓库信息-->
<script src="../../../../ht-js/dynamicWarehouse.js?rev=@@hash"></script>
<script>
    var checkLength = function(dom, maxLength){
        var l = 0;
        for(var i=0; i<dom.value.length; i++) {
            if (/[\u4e00-\u9fa5]/.test(dom.value[i])) {
                l+=2;
            } else {
                l++;
            }
            if (l > maxLength) {
                dom.value = dom.value.substr(0,i);
                break;
            }
        }
    };

    var start = {
        format: 'YYYY-MM-DD hh:mm:ss',
//        minDate: $.nowDate({DD:0}),
        clearfun:function(val) {
//            start.minDate =$.nowDate({DD:0});
            start.maxDate ="2099-12-31 23:59:59";
            end.minDate="1900-01-01 00:00:00";
            end.maxDate ="2099-12-31 23:59:59";
        },
        okfun: function(obj){
            end.minDate = obj.val.substring(0,obj.val.length-8)+"00:00:00";
            endDates();
        }
    };
    var end = {
        format: 'YYYY-MM-DD hh:mm:ss',
        clearfun:function(val) {
//            start.minDate =$.nowDate({DD:0});
            start.maxDate ="2099-12-31 23:59:59";
            end.maxDate ="2099-12-31 23:59:59";
        },
//        okfun: function(obj){
//            start.maxDate = obj.val; //将结束日的初始值设定为开始日的最大日期
//            startDates();
//        }
    };
    //这里是日期联动的关键
    function endDates() {
        //将结束日期的事件改成 false 即可
        end.trigger = false;
        $("#logmax").jeDate(end);
    }
    $('#logmin').jeDate(start);
    $('#logmax').jeDate(end);

    $(function(){
        $("#form-member-add").validate({
            rules: {
                username: {
                    required: true,
                },
                inform: {
                    required: true,
                    maxlength: 80,
                },
                email:{
                    required: true,
                    email:true
                },
                moli:{
                    required: true,
                }
            },
            onkeyup: false,
            focusCleanup: true,
            success: "valid",
            submitHandler:function(form){
            }
        })
        web.loadMyk();
    });
    /*角色编辑*/
    function roles_edit(title,url,id,w,h){
        layer_show(title,url,w,h);
    }
    $.validator.addMethod("titleCheck", function(value, element) {
        var tel = /^.{1,40}$/;
        return this.optional(element) || (tel.test(value));
    }, "输入有误");
</script>
<style>
    .error{
        color:#ff1b1b;
    }
    label.error {
        position: absolute;
        left: 310px;
        top: 5px;
        color: #ef392b;
        font-size: 12px;
    }
</style>
</body>
</html>